package com.uwo.commons.datasource;

import com.uwo.commons.datasource.configuration.DataSourceConfiguration;
import com.uwo.commons.datasource.configuration.DataSourceProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用datasource
 * @author hao.yan
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
@Import(value = {
        DataSourceProperties.class,
        DataSourceConfiguration.class,
})
@Configuration
public @interface EnableDataSource {

}
